//
//  ConvertibleProtocol.swift
//  TTCOM
//
//  Created by Toj on 8/1/22.
//  强转协议

import Foundation
import CoreGraphics

// MARK: protocol
public protocol ExtString { }

public protocol ExtInt { }

public protocol ExtFloat { }


// MARK: - extension String
extension String : ExtString { }


// MARK: - extension Int
extension Int : ExtInt { }

// MARK: extension Int8
extension Int8 : ExtInt { }

// MARK: extension Int16
extension Int16 : ExtInt  { }

// MARK: extension Int32
extension Int32 : ExtInt  { }

// MARK: extension Int64
extension Int64 : ExtInt  { }

// MARK: extension UInt
extension UInt : ExtInt  { }

// MARK: extension UInt8
extension UInt8 : ExtInt  { }

// MARK: extension UInt16
extension UInt16 : ExtInt  { }

// MARK: extension UInt32
extension UInt32 : ExtInt  { }

// MARK: extension UInt64
extension UInt64 : ExtInt  { }


// MARK: - extension Float
// Float == Float32
extension Float : ExtFloat { }

// MARK: extension Double
// Double == Float64
extension Double: ExtFloat { }

// MARK: extension CGFloat
extension CGFloat: ExtFloat { }
